<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://www.gillion.com.cn/wef-tags" prefix="g"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 Transitional//EN">
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html><HEAD><TITLE>List Selector</TITLE>
<SCRIPT language="javascript" src="${ctx}/scripts/tagUtils.js"></SCRIPT>
<script type="text/javascript" src="${ctx}/dwr/util.js"></script>
<link type="text/css" rel="stylesheet" href="<c:url value='/styles/standard/tag.css'/>" />
</HEAD>
<body onLoad="ListTagUtils.init()" onbeforeUnload="ListTagUtils.beforeCloseWindow()">
<br />
<div align="center" id="titleId"></div>
<form name="form1" id="selectForm" action="" method="post">
<table  cellSpacing="0" align="center" border="0">
<tr>
    <td vAlign="top" align="middle">
 	<div align="left" id="leftList"></div>
 		<select multiple="multiple" class="listSelector" size="10" name="s1" id='typeNoSelId' onDblClick="ListTagUtils.selectDoubleClick(this.selectedIndex,'left')" >
		</select>
	</td>
	<td vAlign="middle" align="middle">
		 <table>
		 	<tr><td><INPUT  type="button" value=" > " onClick="ListTagUtils.add();"></td></tr>
		 	<tr><td><INPUT  type="button" value=" < "  onClick="ListTagUtils.remove('s2');"></td></tr>	 
		 	<tr><td><INPUT  type="button" value=">>" onClick="ListTagUtils.addAll();"></td></tr>
		 	<tr><td><INPUT  type="button" value="<<" onClick="ListTagUtils.removeAll();"></td></tr>
		 </table>
	</td> 
	<td vAlign="top" align="middle"> <div align="left" id="rightList"></div>
		<select multiple="multiple" class="listSelector" size="10" name="s2" id="typeSelId" onDblClick="ListTagUtils.selectDoubleClick(this.selectedIndex,'right')">	
		</select>
	</td>
</TR>
</table>
</form>

<div align="center">
	<g:button type="button" onclick="ListTagUtils.submitClose();" text="button.ensure"/>
	<g:button type="button" onclick="window.close();" text="button.return"/>
</div>
</body>
</html>
